# Makefile for Voldemort language algorithm.
# Harry Wei <harryxiyou@gmail.com>.
# 2011 @ xiyou.

CC		= gcc
CFLAGS		= -g -pipe -O2 -Wall -o
OBJ		= -c
SOURCES		= main.c		\
		  src/rule_mean.c	\
		  src/translate.c	\
		  src/record.c		
OBJECTS		= main.o rule_mean.o translate.o record.o
TARGET		= vl
DEL_FILE	= rm -f

all: Makefile $(TARGET)
$(TARGET):$(OBJECTS)
	$(CC) $^ $(CFLAGS) $@
$(OBJECTS):$(SOURCES)
	$(CC) $(OBJ) $^

clean:
	$(DEL_FILE) $(OBJECTS) $(TARGET)
